<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck" %>
<%@page import="java.util.*,model.*,util.*,control.*"%>
<!DOCTYPE html>
<html>
<head>
    <title>用户注册</title>
    <meta charset="utf-8"/>
    <script  src='../../js/core.js'></script>
    <link type="text/css" rel='stylesheet' href="../../css/us.css"/>
</head>
<body>

            <%
           /*
           *验证权限
           *author 宋智洋
           *data 2011-11-26
           *update 胡瑾
           *data 2011-12-01
           *增加了userId
           */
			String flag = (String)session.getAttribute("flag");
			String userId = (String)session.getAttribute("userId");
			int studentId = Integer.parseInt(userId);
						
			if (flag != "student"|| flag==null )
			{
				%>
            <script language="javascript">
				     alert("您没有学生权限,请重新登录"); window.location.href="../../index.jsp";
				    </script>
            <%
				
			}else{
				Student student = new Student();
				StudentControl sc = new StudentControl();
				student = sc.GetStudent(studentId);
				//out.print("<p>"+student.getStudentName()+"   欢迎您</p>");
			}
           %>
    
<div id="page">
    <header class="header">
        <p class="title">欢迎您注册CAT测评系统</p>
    </header>
    <section class="main">
   		<article class="inf">
            <div class="img">
                    <img src="../../images/11.png" width="110" height="111" />
            </div>
            <div class="detail">
                <h2>基于Android平台的中学数学自适应测评系统</h2>
                <p>版本：Versions1.0</p>
			</div>
        </article>
        <h2>开发团队</h2>
        <p><span class='leader'>组长：</span>胡瑾</p>
        <p><span class='leader'> 成员：</span>李振、宋智洋、范洪春、杜娟、高洪娟</p>
		<br/>
         <p><input type="button" onclick="javascript:window.history.go(-1)" class="btns fl br3" value="返   回"/></p>
    </section>
    <footer class="footer"><small>© 2012 Nenu</small></footer>
</html>
